<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h3>登录</h3>
<hr>
<h1 style="color: red" th:text="${msg}"></h1>
<hr>

<form th:action="@{/login}">
    姓名：<input type="text" name="username" /><br>
    密码：<input type="password" name="password" /><br>
    <input type="submit">
</form>

</body>
</html>